package com.xyz.app.impl;

import com.xyz.app.inter.AppImplContainer;
import com.xyz.app.inter.HtmlParser;

public class DefaultAppImplContainer implements AppImplContainer {

    public DefaultAppImplContainer() {
    }

    @Override
    public HtmlParser getHtmlParserImpl(String siteHost) {
        System.out.println("siteHost:" + siteHost);
        if (siteHost.contains("video")) {
            return new XVHtmlParser(siteHost);
        }
        if (siteHost.contains("pornhub")) {
            return new PornhubHtmlParser(siteHost);
        }

        return new TestHtmlParser(siteHost);
    }

}
